<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>个人资料</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico"> 
    <link href="${pageContext.request.contextPath }/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <!-- jqgrid-->
    <link href="${pageContext.request.contextPath }/css/plugins/jqgrid/ui.jqgrid.css?0820" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/css/animate.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/css/style.css?v=4.1.0" rel="stylesheet">
    <script src="${pageContext.request.contextPath }/js/jquery.min.js?v=2.1.4"></script>
    <script src="${pageContext.request.contextPath }/js/bootstrap.min.js?v=3.3.6"></script>
    
    <!-- 自定义js -->
    <script src="${pageContext.request.contextPath }/js/content.js?v=1.0.0"></script>
    <!-- jQuery Validation plugin javascript-->
    <script src="${pageContext.request.contextPath }/js/plugins/validate/jquery.validate.min.js"></script>
    <script src="${pageContext.request.contextPath }/js/plugins/validate/messages_zh.min.js"></script>
    <script src="${pageContext.request.contextPath }/js/plugins/layer/layer.min.js"></script>
    <style>
      #headImg {
        width:90px;
        height:110px;
      }
    </style>
    
    <script type="text/javascript">
    var win = window.showModalDialog(url,"","dialogWidth:300px;dialogHeight:150px;scroll:no;status:no");  
    //修改
	function updateInfo(id){
		if(id != null && id != ''){
			layer.open({
    			type:2,
    			area:['700px','500px'],
    			fix:false,
    			maxmin:true,
    			content: "${pageContext.request.contextPath }/admin/admin/updateInfo/" + id,
    			end:function(){
    				 location.reload();
    			}
    		});
		}
	}
    </script>
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-sm-6">
                <div class="social-feed-box">
                    <div class="social-footer">
						<form name = "form1" id = "add_admin" >
							<label class="label-text">名称：${admin.realname }</label><br/><br/>
							<label  class="label-text">角色：${roles.arName }</label><br/><br/>
							<label class="label-text">登录帐号：${admin.username }</label><br/><br/>
							<label class="label-text">电话：${admin.telphone }</label><br/><br/>
							<label class="label-text">注册时间：<fmt:formatDate value="${admin.createdAt }" pattern="yyyy-MM-dd HH:mm:ss"/></label><br/><br/>
							<input type = "button" class="btn btn-primary" onclick = "updateInfo(${admin.id});" value = "修改"/>
					    </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>

</html>
